package src.main.StructuralPatterns.Bridge;

// 抽象控制层
public abstract class RemoteControl {
    protected Device device;

    public RemoteControl(Device device) {
        this.device = device;
    }

    public void powerToggle() {
        if (device.isOn()) {
            device.powerOff();
        } else {
            device.powerOn();
        }
    }

    public abstract void channelUp();
    public abstract void channelDown();
    public abstract void volumeUp();
    public abstract void volumeDown();
}
